package vamp
/**
 * The vamp_serviceweb.Nfcequipment entity.
 *
 * @author    
 *
 *
 */
class Nfcequipment {
    static mapping = {
         table 'nfcequipment'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id generator:'identity', column:'idnfcequipment'
         vehicle column:'idvehicle'
         status column:'idstatus'
         member column:'idmember'
    }
    String description
    String nfctag
    String nfcactivationcode
    // Relation
    Vehicle vehicle
    // Relation
    Status status
    // Relation
    Member member

    static constraints = {
        description(blank: false)
        nfctag(blank: false)
        nfcactivationcode(blank: false)
        vehicle()
        status()
        member()
    }
    String toString() {
        return "${id}"
    }
}
